package beans;

import java.util.List;

import dao.DAO;

public class PizzaDB {
	private DAO<Pizza> database = null;
	
	private long idPizza = 0;

	public DAO<Pizza> getDatabase() {
		return database;
	}

	public void setDatabase(DAO<Pizza> database) {
		this.database = database;
	}

	public long getIdPizza() {
		return idPizza;
	}

	public void setIdPizza(long idPizza) {
		this.idPizza = idPizza;
	}
	
	public List<Pizza> getPizzas() {
		return database.findAll();
	}
	
	public Pizza getPizza(){
		return database.find(idPizza);
	}
}
